import request from '@/utils/request'

// 查询房源配套配置表列表
export function listConfig(query) {
  return request({
    url: '/basic/config/list',
    method: 'get',
    params: query
  })
}

// 查询所有房源配套配置
export function listConfigAll(query) {
  return request({
    url: '/basic/config/get-all-list',
    method: 'get'
  })
}

// 查询房源配套配置表详细
export function getConfig(houseConfigId) {
  return request({
    url: '/basic/config/' + houseConfigId,
    method: 'get'
  })
}

// 新增房源配套配置表
export function addConfig(data) {
  return request({
    url: '/basic/config/create',
    method: 'post',
    data: data
  })
}

// 修改房源配套配置表
export function updateConfig(houseConfigId,data) {
  return request({
    url: '/basic/config/update/' + houseConfigId,
    method: 'post',
    data: data
  })
}

// 删除房源配套配置表
export function delConfig(houseConfigId) {
  return request({
    url: '/basic/config/' + houseConfigId,
    method: 'delete'
  })
}
